#ifndef INPUTCHECK_H
#define INPUTCHECK_H

#include <QCheckBox>
#include "widget_input.h"

class InputCheck : public QCheckBox, public WidgetInput
{
    Q_OBJECT

public:
    InputCheck(QWidget *parent = nullptr, const QString& name = "");

    typedef std::function<void(bool)> Callback;

    void setCallback(Callback callback);

    void setValue(const QString& value) override;
    QString getValue() const override;
    bool isEmpty() const override;
};

#endif // INPUTCHECK_H
